import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class PictureDto {
  @ApiProperty({
    description: '图片地址',
    example: 'https://picsum.photos/200/300',
  })
  @IsNotEmpty({ message: '图片地址不能为空' })
  src: string;

  @ApiProperty({ description: '图片签名', example: 'asdsadsad' })
  sign?: string;
}
